/*
 * Created on Jun 3, 2005
 */
package com.mgmaps.net;

/**
 * This is an interface for objects that can be downloaded.
 *
 * @author CristiS
 * @version 1.0
 */
public interface Downloadable {
  /**
   * Get object URL.
   * 
   * @return the URL for the object
   */
  public String getURL();
  
  /**
   * Notify the object that it was downloaded.
   * 
   * @param data the URL data
   */
  public void notifyDownloaded(byte[][] data);
  
  /**
   * Notify the object that an error occured.
   */
  public void notifyError(String message);
}
